You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Dew.Stats.Units Namespace > Classes > StatTimeSerAnalysis Class > StatTimeSerAnalysis Methods > StatTimeSerAnalysis.ARMALogLike Method
Dew Stats for .NET
ContentsIndexHome
PreviousUpNext
StatTimeSerAnalysis.ARMALogLike Method

-2log likelihood.

Syntax
C#
Visual Basic
public static double ARMALogLike([In] TVec Data, [In] TVec Trend, [In] TVec Phi, [In] TVec Theta, [In] TVec Residuals);
Parameters 
Description 
[In] TVec Data 
Input date. 
[In] TVec Trend 
Optional trend line. Can be nil, if constant (average value) is assumed.  
[In] TVec Phi 
stores phi[0]..phi[p-1] coefficients. The order of AR(p) is defined by Phi vector length. 
[In] TVec Theta 
stores theta[0]..theta[q-1] coefficients. The order of AR(p) is defined by Phi vector length. 
[In] TVec Residuals 
stores the "errors" left after the fitting process. 

-2log likelihood for ARIMA(p,q,d) process.

using Dew.Math; using Dew.Stats; using Dew.Stats.Units; namespace Dew.Examples { private void Example() { Vector phi = new Vector(0); Vector theta = new Vector(0); Vector ts = new Vector(0); phi.SetIt(false, new double[] {0.33,-0.24}); theta.SetIt(false,new double[] {0.9}); // ARMA(2,1,2) process -> evaluate -2log likelihood double l = StatTimeSerAnalysis.ARMALogLike(ts,phi,theta); } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!